package com.bbva.recaudos.dao;


public abstract class DAOFactory {

	public static final int DB_ORACLE = 1;

	// public static final int DB_MYSQL = 2;
	// public static final int DB_DB2 = 3;
	// public static final int DB_SQLSERVER = 4;
	// public static final int DB_XML = 5;
	
	//objetos daos
	public abstract RegistroIntercnxDAO getRegistroIntercnx();
	public abstract EmpresaDAO getEmpresa();
	public abstract ConvenioDAO getConvenio();

	public static DAOFactory getDAOFactory(int whichFactory) {
		switch (whichFactory) {
			case DB_ORACLE:
				return new OracleDAOFactory();
		/*
		case XML:
			return new XmlDAOFactory();
		case MYSQL:
			return new MySqlDAOFactory();
			 * case DB2: return new Db2DAOFactory(); case SQLSERVER: return new
			 * SqlServerDAOFactory(); case XML: return new XmlDAOFactory();
			 */
		default:
			return null;
		}
	}

}
